var todoApp = angular.module("todoApp", ["ngResource", "ngRoute", "ngAnimate", "ngMessages"]);

todoApp.factory("TodoResource", function($resource) {
    return $resource('http://localhost:55373/api/Todos/:id', {
    id: '@id'
  }, {
    update: {
      method: 'PUT'
    }
  }, {
    save: {
      method: 'POST'
    }
  });
});